﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WFA
{
    public partial class Form3 : Form
    {
        public Form3()
        {
            InitializeComponent();
            tabControl1.SelectedIndex = 1;
        }



        private void button2_Click(object sender, EventArgs e)
        {
            tabControl1.SelectedIndex = 0;
            DataSet1 ds1 = new DataSet1();
            ds1.DataTable1.AddDataTable1Row("a1", "a2", "a3", "a4", "a5", "1", "1", "1", "1", "1");
            ds1.DataTable1.AddDataTable1Row("b1", "b2", "b3", "b4", "b5", "1", "1", "1", "1", "1");
            ds1.DataTable1.AddDataTable1Row("c1", "c2", "c3", "c4", "c5", "1", "1", "1", "1", "1");
            ds1.DataTable1.AddDataTable1Row("d1", "d2", "d3", "d4", "d5", "1", "1", "1", "1", "1");
            ds1.DataTable1.AddDataTable1Row("e1", "e2", "e3", "e4", "e5", "1", "1", "1", "1", "1");
            CrystalReport1 cr1 = new CrystalReport1();
            cr1.SetDataSource(ds1);
            crystalReportViewer1.ReportSource = cr1;
        }


        private void Form3_Load(object sender, EventArgs e)
        {
            
        }
    }
}
